#include <chrono>
#include <iostream>

using std::cout;
using std::endl;
using std::chrono::system_clock;

// #define BUILT_TIME __DATE____TIME__
#ifndef M_PI
#define M_PI (3.14159265358979323846)
#endif

int toInt(unsigned short low, unsigned short high) {
  unsigned int value = (unsigned int)high;
  value = (value << 16) + low;
  return value;
  return 0;
}
int main() {
  // 计时开始
  auto start = std::chrono::system_clock::now();

  cout << "Hello World!" << endl;

  unsigned short low = 0x1234;
  unsigned short high = 0x5678;
  cout << "toInt " << toInt(low, high) << endl;
  // 计时结束
  auto end = std::chrono::system_clock::now();
  std::chrono::duration<double> elapsed_seconds = end - start;
  cout << "Elapsed Time: " << elapsed_seconds.count() << " sec" << std::endl;

  return 0;
}
